# coding:utf-8
import sys

from PySide6.QtCore import Qt, QLocale
from PySide6.QtWidgets import QApplication
from qfluentwidgets import FluentTranslator

from views.video_window import VideoWindow

# create application
app = QApplication(sys.argv)
app.setAttribute(Qt.ApplicationAttribute.AA_DontCreateNativeWidgetSiblings)

# internationalization
locale = QLocale(QLocale.Language.Chinese, QLocale.Country.China)
translator = FluentTranslator(locale, app)
app.installTranslator(translator)

# create main window
w = VideoWindow()
w.show()

app.exec()
